package com.cee.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cee.dto.*;
import com.cee.model.ExamUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface ExamUserMapper extends BaseMapper<ExamUser> {

    /**
     * 获取考试列表
     * @param examUserDTO
     * @return
     */
    List<ExamUserDTO> getExamUserList(ExamUserDTO examUserDTO);


    void updateExamUser(ExamUser examUser);


    ExamUserDTO getExamUser(@Param("id") Integer id);


    ExamUser getExamUserByPhone(@Param("phone") String phone);


    List<ExamUserOneResultDTO> getExamUserOneSelect(Integer ceeExamUserId);

    List<ExamUserManyResultDTO> getExamUserManySelect(Integer ceeExamUserId);

    List<ExamUserJudgeResultDTO> getExamUserJudge(Integer ceeExamUserId);

    List<ExamUserCompletionResultDTO> getExamUserCompletion(Integer ceeExamUserId);

    List<ExamUserShortResultDTO> getExamUserShortAnswer(Integer ceeExamUserId);


    Integer countScoreTotal(@Param("ceeExamUserId") Integer ceeExamUserId);
}
